package com.identity;

import com.baomidou.mybatisplus.core.toolkit.Sequence;

public class IdGenerator {
	/**
	 * 主机和进程的机器码
	 */
	private static final Sequence worker = new Sequence();

	public static long getId() {
		return worker.nextId();
	}
}
